#include "Polygon.h"
#include "Rectangle.h"
#include "Triangle.h"
int main(){
	Rectangle rect;
	Triangle trgl;
	Polygon *poly1 = &rect;
	Polygon *poly2 = &trgl;
	poly1->setValues(4, 5);
	poly2->setValues(4, 6);
	cout << poly1->area() << endl;
	cout << poly2->area() << endl;
	system("pause");
	return 0;
}